package ren.kane.phoenix.util.io;

import com.google.common.base.MoreObjects;

import java.io.Serializable;

/**
 * @author renrk(1275) on 2019-07-31 9:52 AM
 **/
public class Box1 implements Serializable {

    private String name;
    private static int width;
    private transient int height;

    public Box1(String name, int width, int height) {
        this.name = name;
        this.width = width;
        this.height = height;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static int getWidth() {
        return width;
    }

    public static void setWidth(int width) {
        Box1.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
            .add("name", name)
            .add("width", width)
            .add("height", height)
            .toString();
    }
}
